package top.luoblog.strategy;

/**
 * @author : luo
 */
public class Calculator {

    private Operation operation;

    public Calculator(Operation operation) {
        this.operation = operation;
    }

    public int calculate(int num1, int num2) {
        return operation.doOperation(num1, num2);
    }

}
